import request from '@/utils/request'

// 查询尽调报告订单列表
export function listDiligence_report_order(query) {
  return request({
    url: '/yipaiju/diligence_report_order/list',
    method: 'get',
    params: query
  })
}

// 查询尽调报告订单详细
export function getDiligence_report_order(id) {
  return request({
    url: '/yipaiju/diligence_report_order/' + id,
    method: 'get'
  })
}

// 新增尽调报告订单
export function addDiligence_report_order(data) {
  return request({
    url: '/yipaiju/diligence_report_order',
    method: 'post',
    data: data
  })
}

// 修改尽调报告订单
export function updateDiligence_report_order(data) {
  return request({
    url: '/yipaiju/diligence_report_order',
    method: 'put',
    data: data
  })
}

// 删除尽调报告订单
export function delDiligence_report_order(id) {
  return request({
    url: '/yipaiju/diligence_report_order/' + id,
    method: 'delete'
  })
}

export function manuallGenerateReport(id) {
  return request({
    url: '/yipaiju/diligence_report_order/manuall-generate-report/' + id,
    method: 'post',
  })
}

export function manuallSendMessage(id) {
  return request({
    url: '/yipaiju/diligence_report_order/manuall-send-message/' + id,
    method: 'post',
  })
}
